Skip to content

fix(react-router): preserve sourcemaps.disable override#20042

Open
isaacs wants to merge 1 commit intodevelopfrom
cursor/sourcemaps-disable-overwrite-bug-311c
Open

fix(react-router): preserve sourcemaps.disable override#20042
isaacs wants to merge 1 commit intodevelopfrom
cursor/sourcemaps-disable-overwrite-bug-311c

Conversation

@isaacs
Copy link
Copy Markdown
Member

@isaacs isaacs commented Mar 30, 2026

Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Before submitting a pull request, please take a look at our

Small issue found by cursor in #19890 right before it got merged.

@isaacs isaacs requested a review from chargome March 30, 2026 14:52
isaacs pushed a commit that referenced this pull request Mar 30, 2026
Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Deps

  • Bump babel-loader from 10.0.0 to 10.1.1 by dependabot in #19997
  • Bump handlebars from 4.7.7 to 4.7.9 by dependabot in #20008

Nuxt

  • Add middleware instrumentation compatibility for Nuxt 5 by s1gr1d in #19968
  • Support parametrized SSR routes in Nuxt 5 by s1gr1d in #19977

Other

  • (browser) Replace element timing spans with metrics by logaretm in #19869
  • (bun) Add bunRuntimeMetricsIntegration by chargome in #19979
  • (core) Support embedding APIs in google-genai by nicohrubec in #19797
  • (node) Add nodeRuntimeMetricsIntegration by chargome in #19923
  • (node-core) Add OTLP integration for node-core/light by andreiborza in #19729
  • (solid) Add route parametrization for Solid Router by andreiborza in #20031

Bug Fixes 🐛

Ci

  • Update validate-pr action to remove draft enforcement by stephanie-anderson in #20037
  • Update validate-pr action to remove draft enforcement by stephanie-anderson in #20035

Node

  • Deduplicate sentry-trace and baggage headers on outgoing requests by Lms24 in #19960
  • Ensure startNewTrace propagates traceId in OTel environments by logaretm in #19963

React Router

  • Preserve sourcemaps.disable override by isaacs in #20042
  • Disable debug ID injection in Vite plugin to prevent double injection by isaacs in #19890

Other

  • (core) Guard nullish response in supabase PostgREST handler by antonis in #20033
  • (e2e) Pin @opentelemetry/api to 1.9.0 in ts3.8 test app by logaretm in #19992
  • (nuxt) Use virtual module for Nuxt pages data (SSR route parametrization) by s1gr1d in #20020
  • (opentelemetry) Convert seconds timestamps in span.end() to milliseconds by logaretm in #19958
  • (profiling) Disable profiling in worker threads by chargome in #20040

Documentation 📚

  • (release) Update publishing-a-release.md by nicohrubec in #19982

Internal Changes 🔧

Core

  • Introduce instrumented method registry for AI integrations by nicohrubec in #19981
  • Consolidate getOperationName into one shared utility by nicohrubec in #19971

Deps

  • Bump amqplib from 0.10.7 to 0.10.9 by dependabot in #20000
  • Bump actions/upload-artifact from 6 to 7 by dependabot in #19569
  • Bump srvx from 0.11.12 to 0.11.13 by dependabot in #20001
  • Bump @apollo/server from 5.4.0 to 5.5.0 by dependabot in #20007

Deps Dev

  • Remove esbuild override in astro-5-cf-workers E2E test by isaacs in #20024
  • Bump node-forge from 1.3.2 to 1.4.0 by dependabot in #20012
  • Bump yaml from 2.8.2 to 2.8.3 by dependabot in #19985

Other

  • (browser) Reduce browser package bundle size by HazAT in #19856
  • (browser-tests) Add waitForMetricRequest helper by logaretm in #20002
  • (deno) Expand Deno E2E test coverage by chargome in #19957
  • (e2e) Add e2e tests for nodeRuntimeMetricsIntegration by chargome in #19989

🤖 This preview updates automatically when you update the PR.

@isaacs isaacs force-pushed the cursor/sourcemaps-disable-overwrite-bug-311c branch from 5d78fc8 to 838a8e7 Compare March 30, 2026 14:52
@isaacs isaacs marked this pull request as draft March 30, 2026 14:53
isaacs pushed a commit that referenced this pull request Mar 30, 2026
Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
@isaacs isaacs force-pushed the cursor/sourcemaps-disable-overwrite-bug-311c branch from 838a8e7 to a4d7eb2 Compare March 30, 2026 15:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.64 kB - -
@sentry/browser - with treeshaking flags 24.13 kB - -
@sentry/browser (incl. Tracing) 42.15 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.76 kB - -
@sentry/browser (incl. Tracing, Replay) 80.94 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.56 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.65 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 97.91 kB - -
@sentry/browser (incl. Feedback) 42.42 kB - -
@sentry/browser (incl. sendFeedback) 30.3 kB - -
@sentry/browser (incl. FeedbackAsync) 35.28 kB - -
@sentry/browser (incl. Metrics) 26.95 kB - -
@sentry/browser (incl. Logs) 27.1 kB - -
@sentry/browser (incl. Metrics & Logs) 27.77 kB - -
@sentry/react 27.41 kB - -
@sentry/react (incl. Tracing) 44.48 kB - -
@sentry/vue 30.08 kB - -
@sentry/vue (incl. Tracing) 44.05 kB - -
@sentry/svelte 25.66 kB - -
CDN Bundle 28.31 kB - -
CDN Bundle (incl. Tracing) 43.1 kB - -
CDN Bundle (incl. Logs, Metrics) 29.68 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 44.16 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 68.48 kB - -
CDN Bundle (incl. Tracing, Replay) 80 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.04 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.54 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.58 kB - -
CDN Bundle - uncompressed 82.66 kB - -
CDN Bundle (incl. Tracing) - uncompressed 127.81 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 86.81 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 131.22 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 209.79 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.68 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 248.08 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.59 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.98 kB - -
@sentry/nextjs (client) 46.89 kB - -
@sentry/sveltekit (client) 42.62 kB - -
@sentry/node-core 56.7 kB +0.03% +14 B 🔺
@sentry/node 173.85 kB +0.01% +9 B 🔺
@sentry/node - without tracing 96.77 kB +0.01% +5 B 🔺
@sentry/aws-serverless 113.76 kB +0.01% +9 B 🔺

View base workflow run

@isaacs isaacs marked this pull request as ready for review March 30, 2026 15:42
isaacs pushed a commit that referenced this pull request Mar 30, 2026
Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
@isaacs isaacs force-pushed the cursor/sourcemaps-disable-overwrite-bug-311c branch from a4d7eb2 to ce47a95 Compare March 30, 2026 18:13
isaacs pushed a commit that referenced this pull request Mar 30, 2026
Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
@isaacs isaacs force-pushed the cursor/sourcemaps-disable-overwrite-bug-311c branch from ce47a95 to caedbb6 Compare March 30, 2026 18:13
Ensure unstable vite plugin options don't overwrite sourcemaps.disable=true and update test expectations accordingly.

Co-Authored-By: gpt-5.3-codex-high <noreply@anthropic.com>
@isaacs isaacs force-pushed the cursor/sourcemaps-disable-overwrite-bug-311c branch from caedbb6 to 1d54dd8 Compare March 30, 2026 20:01
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

...unstable_sentryVitePluginOptions?._metaOptions,
},
reactComponentAnnotation: {
...unstable_sentryVitePluginOptions?.reactComponentAnnotation,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unstable reactComponentAnnotation values always overridden by undefined

Low Severity

The reactComponentAnnotation section spreads unstable_sentryVitePluginOptions?.reactComponentAnnotation first, but then enabled: reactComponentAnnotation?.enabled ?? undefined explicitly sets enabled to undefined when the user doesn't provide it, overriding any unstable fallback value. The ?? undefined is a no-op. This is inconsistent with the release pattern, which uses ...release and naturally preserves unstable values when the main option isn't provided. Using ...reactComponentAnnotation instead of the explicit property assignments would be consistent.

Additional Locations (1)
Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants